is-function-x
Determine whether a given value is a function object.
Version: 1.4.0
Author: Xotic750 Xotic750@gmail.com
License: MIT
Copyright: Xotic750
module.exports(value)
⇒ boolean
⏏
Checks if value
is classified as a Function
object.
Kind: Exported function
Returns: boolean
- Returns true
if value
is correctly classified,
else false
.
Param | Type | Description |
---|
value | * | The value to check. |
Example
var isFunction = require('is-function-x');
isFunction();
isFunction(Number.MIN_VALUE);
isFunction('abc');
isFunction(true);
isFunction({ name: 'abc' });
isFunction(function () {});
isFunction(new Function ());
isFunction(function* test1() {});
isFunction(function test2(a, b) {});
- isFunction(async function test3() {});
isFunction(class Test {});
isFunction((x, y) => {return this;});